import React from 'react';
import {useColorScheme} from 'react-native';
import RootNavigator from '@/navigator';
import {useFlatListStore} from './store';
import {getFlatListData} from './mock';

function App(): React.JSX.Element {
  const isDarkMode = useColorScheme() === 'dark';

  const store = useFlatListStore();

  React.useEffect(() => {
    const data = getFlatListData();
    store.setStore('data1', data);
  }, []);

  return <RootNavigator />;
}

export default App;
